package cn.psvmc.cxzapi.mapper.order;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.common.OrderTaskEntity;
import cn.psvmc.cxzapi.model.order.TOrderBill;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @Author YWX
 * @Classname TOrderTaskMapper
 * @Description 订单定时任务Mapper接口
 * @Date 2024/9/28 23:00
 **/
public interface TOrderTaskMapper extends MyBaseMapper<TOrderBill> {
    //获取未生成支付宝交易号账单列表
    List<TOrderBill> listNotTradeNo(@Param("now") Date now);

    //更新待归还订单状态
    void updateOrderStatus(@Param("now") Date now);

    //待取消订单列表
    List<OrderTaskEntity> listCancelOrderIds(@Param("time") LocalDateTime time);

    List<TOrderBill> listByOrderId(@Param("orderId") Integer orderId);

    //获取需要代扣的账单列表
    List<TOrderBill> listTradePay(@Param("now") LocalDate now);
}
